﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// PB_PackList
    /// </summary>
    [Table("PB_PackList")]
    public partial class PB_PackList
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 机构ID
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 包编码
        /// </summary>
        public String BoxNo { get; set; }

        /// <summary>
        /// 包名称
        /// </summary>
        public String BoxName { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public string MaterialId { get; set; }

        /// <summary>
        /// 包类型1-包；2-箱
        /// </summary>
        public Int32? Type { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public Double? Nums { get; set; }

        /// <summary>
        /// 打包状态:0-待打包；1-打包完成|待通知入库；2-已通知入库；3-已入库；4-已出库；
        /// </summary>
        public Int32? Status { get; set; }

        /// <summary>
        /// 任务单ID
        /// </summary>
        public String TaskId { get; set; }

        /// <summary>
        /// 是否可以修改数量：0-不可修改；1-可以修改
        /// </summary>
        public Boolean? State { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 入库单ID
        /// </summary>
        public string NoticeId { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public String CreatorName { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 车间Id
        /// </summary>
        public string WorkshopId { get; set; }

        /// <summary>
        /// 是否新旧：0-旧；1-新
        /// </summary>
        public int? OldOrNew { get; set; }

        /// <summary>
        /// 是否标准包0 标准包   1混合包
        /// </summary>
        public int? PackageType { get; set; }

        /// <summary>
        /// 是否拆零：0否;1是
        /// </summary>
        public Boolean? IsUnpacking { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTime? InStorTime { get; set; }

        /// <summary>
        /// 入库操作人Id
        /// </summary>
        public string InStorUserId { get; set; }

        /// <summary>
        /// 入库操作人姓名
        /// </summary>
        public string InStorUserName { get; set; }

        /// <summary>
        /// 出库时间
        /// </summary>
        public DateTime? OutStorTime { get; set; }

        /// <summary>
        /// 出库操作人Id
        /// </summary>
        public string OutStorUserId { get; set; }

        /// <summary>
        /// 出库操作人姓名
        /// </summary>
        public string OutStorUserName { get; set; }

    }
}